#pragma once
#include "afxwin.h"
#include "../common/Common.h"

class CBroadcastTestDlg : public CDialogEx
{
public:
	CBroadcastTestDlg(CWnd* pParent = NULL);

#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_BROADCASTTEST_DIALOG };
#endif

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);

protected:
	HICON m_hIcon;

	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:

	CString		_localIP;

	CButton _btnRecv;
	CEdit _editPort;
	CEdit _editMsg;
	CEdit _editSend;

	afx_msg void OnBtnRecv();
	afx_msg void OnBtnSend();

	void AppendMsg(const WCHAR* msg);
	LRESULT OnAppendMsg(WPARAM wParam, LPARAM lParam);
};
